﻿using EFCore_Test.AppDBContext;
using EFCore_Test.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore_Test.Serivces
{
    public class AccountService(ApplicationContext context) : IAccountService
    {
        public void Run()
        {
            var entity = context.Model.FindEntityType(typeof(Account));

            var tableName = entity.GetTableName();
            var key = entity.FindPrimaryKey();

            Console.WriteLine($"tableName:{tableName},key:{key}");
        }
    }
}